﻿<Window x:Class="KeyboardImageViewer.Import"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Import" Height="427" Width="540" WindowStartupLocation="CenterOwner"
        Closing="Window_Closing" ShowInTaskbar="False" MinWidth="410" MinHeight="280">
    <Grid>
        <ListView Margin="17,15,15,138" Name="previewList">
            <ListView.View>
                <GridView>
                    <GridViewColumn DisplayMemberBinding="{Binding Path=OldName}" Header="Original Name" Width="Auto" x:Name="oldNameColumn" />
                    <GridViewColumn DisplayMemberBinding="{Binding Path=NewName}" Header="New Name" Width="Auto" x:Name="newNameColumn" />
                    <GridViewColumn DisplayMemberBinding="{Binding Path=NewTags}" Header="New Tags" Width="Auto" x:Name="newTagsColumn" />
                </GridView>
            </ListView.View>
            <ListView.ItemContainerStyle>
                <Style TargetType="{x:Type ListViewItem}">
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="{x:Type ListViewItem}">
                                <Grid>
                                    <GridViewRowPresenter Content="{TemplateBinding Content}" Columns="{TemplateBinding GridView.ColumnCollection}"/>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding Path=WillBeDeleted}" Value="True">
                            <Setter Property="Template">
                                <Setter.Value>
                                    <ControlTemplate TargetType="{x:Type ListViewItem}">
                                        <Grid Background="#FFB6B6">
                                            <GridViewRowPresenter Content="{TemplateBinding Content}" Columns="{TemplateBinding GridView.ColumnCollection}"/>
                                        </Grid>
                                    </ControlTemplate>
                                </Setter.Value>
                            </Setter>
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </ListView.ItemContainerStyle>
        </ListView>
        <Button Height="23" HorizontalAlignment="Right" Margin="0,0,9,12" Name="closeButton" VerticalAlignment="Bottom" Width="75" IsCancel="True">Close</Button>
        <Button Height="23" HorizontalAlignment="Right" Margin="0,0,9,101" Name="refreshPreview" VerticalAlignment="Bottom" Width="94" Click="refreshPreview_Click">Refresh Preview</Button>
        <Button Height="23" HorizontalAlignment="Right" Margin="0,0,9,71" Name="importButton" VerticalAlignment="Bottom" Width="75" Click="importButton_Click">Import</Button>
        <TextBox Height="88" Margin="20,0,115,36" Name="importRules" VerticalAlignment="Bottom" AcceptsReturn="True"/>
        <CheckBox Height="16" Margin="20,0,0,12" Name="deleteDuplicatesBox" VerticalAlignment="Bottom" Checked="deleteDuplicatesBox_Checked" Unchecked="deleteDuplicatesBox_Unchecked" HorizontalAlignment="Left" Width="290">Delete file-based duplicates of non-visible images</CheckBox>
    </Grid>
</Window>
